const { mysql } = require('../qcloud')

module.exports = async (ctx, next) => {
  var id = ctx.request.body.id;
  await mysql('book').select('*').where({ id : id}).then(res => {
    ctx.state.data = res
    
  })
}


